package com.sx.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sx.basic.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author AdinZ
 * @date 2020/11/13 13:54
 */
@Data
@NoArgsConstructor
@TableName(value = "sx_user_wx_info")
@Entity
@Table(name = "sx_user_wx_info")
@ApiModel(value = "微信用户资料",description = "微信用户资料")
public class WxInfoEntity extends BasicEntity {

    @Id
    @GeneratedValue
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty("用户id")
    private long uid;
    @ApiModelProperty("微信openid")
    private String openid;
    @ApiModelProperty("微信昵称")
    private String nickname;
    @ApiModelProperty("同一开放平台相同值")
    private String unionid;
    @ApiModelProperty("头像")
    private String headimgurl;
    @ApiModelProperty("国家")
    private String country;
    @ApiModelProperty("省")
    private String province;
    @ApiModelProperty("市")
    private String city;
    @ApiModelProperty("头像")
    private String appId;
    @ApiModelProperty(value = "微信性别", allowableValues = "[0:未知,1:男,2:女]")
    private int gender;


}
